import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import MemuBar from "../components/common/MemuBar";
import PersonalInf from "../components/userinfo/PersonalInf";
import SalesChanceList from "../components/SalesManagement/SalesChanceList";
import CreatSalesChance from "../components/SalesManagement/CreatSalesChance";
import UpdateSalesChance from "../components/SalesManagement/UpdateSalesChance";
import AssignSalesChance from "../components/SalesManagement/AssignSalesChance";
import DevelopmentPlanList from "../components/ CustomerDevelopmentPlan/DevelopmentPlanList";
import CreateDevelopmentPlan from "../components/ CustomerDevelopmentPlan/CreateDevelopmentPlan";
import ImplementDevelopmentPlan from "../components/ CustomerDevelopmentPlan/ImplementDevelopmentPlan";
import CustomerInfoList from "../components/customerinfomanage/CustormerInfo/CustomerInfoList";
import CustomerDetailedInfo from "../components/customerinfomanage/CustormerInfo/CustomerDetailedInfo";
import CustomerContactsList from "../components/customerinfomanage/CustomerContacts/CustomerContactsList";
import CreateCustomerContacts from "../components/customerinfomanage/CustomerContacts/CreateCustomerContacts";
import UpdateCustomerContacts from "../components/customerinfomanage/CustomerContacts/UpdateCustomerContacts";
import CustomerCommunicationRecordList from "../components/customerinfomanage/CustomerCommunicationRecor/CustomerCommunicationRecordList";
import CreateCustomerCommunicationRecord from "../components/customerinfomanage/CustomerCommunicationRecor/CreateCustomerCommunicationRecord";
import UpdateCustomerCommunicationRecord from "../components/customerinfomanage/CustomerCommunicationRecor/UpdateCustomerCommunicationRecord";
import CustomerHistoricalOrderList from "../components/customerinfomanage/OrderList/CustomerHistoricalOrderList";
import CustomerDrainList from "../components/customerdrainmanage/CustomerDrainList";
import SuspendCustomerDrain from "../components/customerdrainmanage/SuspendCustomerDrain";
import ConfirmCustomerDrain from "../components/customerdrainmanage/ConfirmCustomerDrain";
import CreateCustomerService from "../components/customerservicemanage/CreateCustomerService";
import CustomerServiceDistribution from "../components/customerservicemanage/CustomerServiceDistribution";
import CustomerServiceHandle from "../components/customerservicemanage/CustomerServiceHandle";
import CustomerServiceHandleDetails from "../components/customerservicemanage/CustomerServiceHandleDetails";
import CustomerServiceFeedback from "../components/customerservicemanage/CustomerServiceFeedback";
import CustomerServiceFeedbackDetails from "../components/customerservicemanage/CustomerServiceFeedbackDetails";
import CustomerServiceArchiving from "../components/customerservicemanage/CustomerServiceArchiving";
import CustomerServiceArchivingDetails from "../components/customerservicemanage/CustomerServiceArchivingDetails";
import CustomerContributionAnalysis from "../components/customerstatisticalreport/CustomerContributionAnalysis";
import CustomerCompositionAnalysis from "../components/customerstatisticalreport/CustomerCompositionAnalysis";
import CustomerServiceAnalysis from "../components/customerstatisticalreport/CustomerServiceAnalysis";
import CustomerDrainAnalysis from "../components/customerstatisticalreport/CustomerDrainAnalysis";
import DataDictionaryList from "../components/basicdata/DataDictionary/DataDictionaryList";
import CreateDataDictionary from "../components/basicdata/DataDictionary/CreateDataDictionary";
import UpdateDateDictionary from "../components/basicdata/DataDictionary/UpdateDateDictionary";
import ProductInfoList from "../components/basicdata/ProductInfo/ProductInfoList";
import CreateProductInfo from "../components/basicdata/ProductInfo/CreateProductInfo";
import UpdateProductInfo from "../components/basicdata/ProductInfo/UpdateProductInfo";
import ProductInfoDetails from "../components/basicdata/ProductInfo/ProductInfoDetails";
import ProductStockInfoList from "../components/basicdata/ProductStockInfo/ProductStockInfoList";
import CreateProductStockInfo from "../components/basicdata/ProductStockInfo/CreateProductStockInfo";
import UpdateProductStockInfo from "../components/basicdata/ProductStockInfo/UpdateProductStockInfo";
import StaffInfoList from "../components/basicdata/StaffInfo/StaffInfoList";
import CreateStaffInfo from "../components/basicdata/StaffInfo/CreateStaffInfo";
import UpdateStaffInfo from "../components/basicdata/StaffInfo/UpdateStaffInfo";
import UpdatePersonalInfo from "../components/userinfo/UpdatePersonalInfo";
import CustomerHistoricalOrderDetails from "../components/customerinfomanage/OrderList/CustomerHistoricalOrderDetails";
import CustomerOrderList from "../components/customerinfomanage/OrderList/CustomerOrderList";
import CreateCustomerOrder from "../components/customerinfomanage/OrderList/CreateCustomerOrder";
import UpdateCustomerOrder from "../components/customerinfomanage/OrderList/UpdateCustomerOrder";
import CreateCustomerInfo from "../components/customerinfomanage/CustormerInfo/CreateCustomerInfo";
import UpdateCustomerInfo from "../components/customerinfomanage/CustormerInfo/UpdateCustomerInfo";
import ProductStockInfoDetails from '../components/basicdata/ProductStockInfo/ProductStockInfoDetails'
import axios from "axios";

Vue.prototype.$axios = axios
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/Login",
      component: Login,
    },
    {
      path: '/Login',
      name:'Login',
      component: Login,
    },
    {
      path: '/MemuBar',
      name: 'MemuBar',
      component: MemuBar,
      children:[
        {path:'PersonalInf',name:PersonalInf,component:PersonalInf},//我都信息
        {path:'SalesChanceList',name:SalesChanceList,component:SalesChanceList},//销售机会列表
        {path:'CreatSalesChance',name:CreatSalesChance,component:CreatSalesChance},//创建销售机会
        {path:'UpdateSalesChance',name:UpdateSalesChance,component:UpdateSalesChance},//更新销售机会
        {path:'AssignSalesChance',name:AssignSalesChance,component:AssignSalesChance},//指派销售机会
        {path:'DevelopmentPlanList',name:DevelopmentPlanList,component:DevelopmentPlanList},//客户开发计划列表
        {path:'CreateDevelopmentPlan',name:CreateDevelopmentPlan,component:CreateDevelopmentPlan},//制定客户开发计划
        {path:'ImplementDevelopmentPlan',name:ImplementDevelopmentPlan,component:ImplementDevelopmentPlan},//执行客户开发计划
        {path:'CustomerInfoList',name:CustomerInfoList,component:CustomerInfoList},//客户信息列表
        {path:'CreateCustomerInfo',name:CreateCustomerInfo,component:CreateCustomerInfo},//新建客户信息
        {path:'UpdateCustomerInfo',name:UpdateCustomerInfo,component:UpdateCustomerInfo},//新建客户信息
        {path:'CustomerDetailedInfo',name:CustomerDetailedInfo,component:CustomerDetailedInfo},//客户信息详情
        {path:'CustomerContactsList',name:CustomerContactsList,component:CustomerContactsList},//客户联系人列表
        {path:'CreateCustomerContacts',name:CreateCustomerContacts,component:CreateCustomerContacts},//创建客户联系人
        {path:'UpdateCustomerContacts',name:UpdateCustomerContacts,component:UpdateCustomerContacts},//修改客户联系人
        {path:'CustomerCommunicationRecordList',name:CustomerCommunicationRecordList,component:CustomerCommunicationRecordList},//客户交往记录列表
        {path:'CreateCustomerCommunicationRecord',name:CreateCustomerCommunicationRecord,component:CreateCustomerCommunicationRecord},//新建客户交往记录
        {path:'UpdateCustomerCommunicationRecord',name:UpdateCustomerCommunicationRecord,component:UpdateCustomerCommunicationRecord},//修改客户交往记录
        {path:'CustomerHistoricalOrderList',name:CustomerHistoricalOrderList,component:CustomerHistoricalOrderList},//客户历史订单列表
        {path:'CustomerHistoricalOrderDetails',name:CustomerHistoricalOrderDetails,component:CustomerHistoricalOrderDetails},//客户历史订单详情
        {path:'CustomerOrderList',name:CustomerOrderList,component:CustomerOrderList},//客户订单列表
        {path:'CreateCustomerOrder',name:CreateCustomerOrder,component:CreateCustomerOrder},//新增客户订单列表
        {path:'UpdateCustomerOrder',name:UpdateCustomerOrder,component:UpdateCustomerOrder},//修改客户订单列表
        {path:'CustomerDrainList',name:CustomerDrainList,component:CustomerDrainList},//客户流失列表
        {path:'SuspendCustomerDrain',name:SuspendCustomerDrain,component:SuspendCustomerDrain},//暂缓客户流失
        {path:'ConfirmCustomerDrain',name:ConfirmCustomerDrain,component:ConfirmCustomerDrain},//确认客户流失
        {path:'CreateCustomerService',name:CreateCustomerService,component:CreateCustomerService},//服务创建
        {path:'CustomerServiceDistribution',name:CustomerServiceDistribution,component:CustomerServiceDistribution},//服务分配
        {path:'CustomerServiceHandle',name:CustomerServiceHandle,component:CustomerServiceHandle},//服务处理
        {path:'CustomerServiceHandleDetails',name:CustomerServiceHandleDetails,component:CustomerServiceHandleDetails},//服务处理详情页
        {path:'CustomerServiceFeedback',name:CustomerServiceFeedback,component:CustomerServiceFeedback},//服务反馈
        {path:'CustomerServiceFeedbackDetails',name:CustomerServiceFeedbackDetails,component:CustomerServiceFeedbackDetails},//服务反馈详情页
        {path:'CustomerServiceArchiving',name:CustomerServiceArchiving,component:CustomerServiceArchiving},//服务归档
        {path:'CustomerServiceArchivingDetails',name:CustomerServiceArchivingDetails,component:CustomerServiceArchivingDetails},//服务归档详情
        {path:'CustomerContributionAnalysis',name:CustomerContributionAnalysis,component:CustomerContributionAnalysis},//客户贡献分析
        {path:'CustomerCompositionAnalysis',name:CustomerCompositionAnalysis,component:CustomerCompositionAnalysis},//客户构成分析
        {path:'CustomerServiceAnalysis',name:CustomerServiceAnalysis,component:CustomerServiceAnalysis},//客户服务分析
        {path:'CustomerDrainAnalysis',name:CustomerDrainAnalysis,component:CustomerDrainAnalysis},//客户流失分析
        {path:'DataDictionaryList',name:DataDictionaryList,component:DataDictionaryList},//数据字典列表
        {path:'CreateDataDictionary',name:CreateDataDictionary,component:CreateDataDictionary},//新增数据字典
        {path:'UpdateDateDictionary',name:UpdateDateDictionary,component:UpdateDateDictionary},//修改数据字典
        {path:'ProductInfoList',name:ProductInfoList,component:ProductInfoList},//产品信息列表
        {path:'CreateProductInfo',name:CreateProductInfo,component:CreateProductInfo},//新建产品信息
        {path:'UpdateProductInfo',name:UpdateProductInfo,component:UpdateProductInfo},//修改产品信息
        {path:'ProductInfoDetails',name:ProductInfoDetails,component:ProductInfoDetails},//产品详细信息
        {path:'ProductStockInfoList',name:ProductStockInfoList,component:ProductStockInfoList},//产品库存信息列表
        {path:'CreateProductStockInfo',name:CreateProductStockInfo,component:CreateProductStockInfo},//新建产品库存信息
        {path:'UpdateProductStockInfo',name:UpdateProductStockInfo,component:UpdateProductStockInfo},//修改产品库存信息
        {path:'ProductStockInfoDetails',name:ProductStockInfoDetails,component:ProductStockInfoDetails},//查看产品详情
        {path:'StaffInfoList',name:StaffInfoList,component:StaffInfoList},//员工信息列表
        {path:'CreateStaffInfo',name:CreateStaffInfo,component:CreateStaffInfo},//新建员工信息
        {path:'UpdateStaffInfo',name:UpdateStaffInfo,component:UpdateStaffInfo},//修改员工信息
        {path:'UpdatePersonalInfo',name:UpdatePersonalInfo,component:UpdatePersonalInfo},//修改个人信息
      ]
    },
  ]
})
